Haunted mansion room background featuring a highly detailed CSS grandfather clock and a floating ghost emoji

Haunted Grandfather Clock

This is a Haunted CSS Grandfather Clock. It renders a highly detailed, thematic timepiece using only CSS shapes, set against an animated spooky background. Its function is to provide an immersive, real-time clock interface, replacing flat digital readouts with rich, analog spatial design.

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 55+ Edge Edge 79+ Firefox Firefox 54+ Safari Safari 10+
Features:
Real-Time Clock CSS Illustration Smooth Sweep
Code by: Gemma Croad Gemma Croad
License: MIT

See the Pen Haunted Grandfather Clock.

Glowing neon seven-segment digital clock rendered in 3D perspective with realistic floor reflections on a dark background

Neon 3D Seven-Segment Digital Clock

This is a Neon 3D Seven-Segment Digital Clock. It procedurally generates a classic LCD/LED interface using pure CSS geometry. Its function is to provide a highly atmospheric, real-time clock that utilizes 3D space and realistic glowing floor reflections to enhance cyberpunk or dashboard aesthetics.

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
Seven-Segment Logic 3D Camera Pan Floor Reflection Procedural DOM
Code by: Metty Metty
License: MIT
Black background with a circular arrangement of the words TICK and TOCK; one TOCK word is highlighted in yellow to indicate the current second

Tick-Tock Typographic Clock

This Tick-Tock Typographic Clock reimagines the traditional clock face by replacing ticks and numbers with words. Using a clever SCSS loop, it arranges 60 text elements (“TICK” for even seconds, “TOCK” for odd) in a perfect circle. A JavaScript interval updates the active class every second, creating a rhythmic, reading-based timekeeping experience. (Requires: FontAwesome)

Technologies:
HTML SCSS JavaScript
Difficulty: Beginner
Browser Support (as of Jan 2026):
Chrome Chrome 49+ Edge Edge 15+ Firefox Firefox 43+ Safari Safari 10+
Features:
SCSS Loops Digital & Analog Hybrid Text-as-UI Real-time Date Object
License: MIT

See the Pen Tick-Tock Typographic Clock.

Blocky Digital Clock

Blocky Digital Clock

A voxel-style 3D clock where digits morph physically via CSS transforms driven by sibling selectors, creating a floating, mechanical restructuring effect.

See the Pen Blocky Digital Clock.

CSS Grid Clock (Animated)

CSS Grid Clock (Animated)

A highly detailed Dual Analog Clock component that compares abstract and real-time animation.

See the Pen CSS Grid Clock (Animated).

Digital-Analog Dial Clock

Digital-Analog Dial Clock

A digital-analog clock hybrid where JavaScript’s setInterval only updates a single CSS variable - --dRotate, while all the complex rotation and counter-rotation of the dials and numbers is handled by pure CSS transform.

See the Pen Digital-Analog Dial Clock.

Blocks Clock with Pixel Art Digits

Blocks Clock with Pixel Art Digits

This retro-style clock leverages CSS Grid for its 3x5 matrix display, dynamically updating the digit structure by manipulating the parent element’s class, while setInterval(setTime, 500) ensures a responsive time refresh.

Neon Clock

Neon Clock

A technical showcase demonstrating how to control the neon glow intensity and color scheme using CSS variables and the hsl() function, while delivering a realistic neon tube effect on each digital segment via subtle text-shadow and box-shadow styling.

See the Pen Neon Clock.

JS and CSS Clock

JavaScript rotates the clock hands every second, updates the digital display, and plays a sidestick sound on each tick. The hands are positioned absolutely with transforms; the numbers are manually placed using nth‑child selectors.

JavaScript updates the digital time every half‑second, while CSS keyframes continuously warp the clock’s rings — height, position, and scale shift in a pulsating loop. The result is an abstract, organic timepiece where form breathes rather than ticks.

CSS Clock

This is a static illustration of a Seiko watch — the hands are fixed at arbitrary angles, not showing the current time. The design uses absolute positioning for hour markers and hands, with pseudo‑elements adding dimensional shadows and highlights. No JavaScript runs the clock; it’s a purely visual piece.

Minimalist Clock

JavaScript calculates the current time and sets animation delays on the clock hands to position them correctly. CSS animations then rotate the hands continuously, creating a seamless analog clock. The indicator marks are generated with an SCSS loop, keeping the markup clean.

Orange Clock

JavaScript updates the hour, minute, and second hands every second by setting rotation angles via transform. Decorative dots around the clock are drawn with box‑shadow on pseudo‑elements — a lightweight, pure‑CSS pattern. The design is compact and functional.

Pseudo‑elements draw both clock hands and hour markers using transforms and box‑shadow. Two hands rotate at different speeds, creating an abstract mechanical loop. The layout is fixed — markers are positioned via hardcoded offsets.